package cn.com.twoke.app.pin_dou_dou.core;


import com.formdev.flatlaf.FlatDarkLaf;
import com.formdev.flatlaf.FlatIntelliJLaf;
import com.formdev.flatlaf.FlatLightLaf;

import javax.swing.*;

public class PinDouDouStarter {

    public static void run( String[] args ) {

        SwingUtilities.invokeLater(() -> {
            // 根据设置应用主题
            String theme = Settings.getTheme();
            try {
                if ("FlatDarkLaf".equals(theme)) {
                    UIManager.setLookAndFeel(new FlatDarkLaf());
                } else {
                    UIManager.setLookAndFeel(new FlatLightLaf());
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            new PinDouDouPanel("拼豆图设计器", "app.png", 800, 400);
        });
    }

}
